﻿using Abp.Application.Services;
using HiShing.TongDanGuanJia.OnNetaApis.Dto;
using HiShing.TongDanGuanJia.OnNetaApis.Dto.OneNet;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace HiShing.TongDanGuanJia.OnNetaApis
{
    public interface IOneNetApiService : IApplicationService
    {
        Task<DataTableSource<DevicePropertyCurrentValue>> GetDeviceCurrentValues(string deviceId, int deviceTypeId);

        Task<DataTableSource<DevicePropertyHistoryValue>> GetDeviceHistoryValuesPerMinute(GetDeviceHistoryDataDto dto);
        Task<DataTableSource<DevicePropertyHistoryValue>> GetDeviceHistoryValuesPerDay(GetDeviceHistoryDataDto dto);

        Task<List<Datapoint>> GetOneWeekDeviceTotalData(string deviceId, int deviceTypeId, int index, long henCount = 0);
        Task<DeviceInfo> GetDeviceInfo(string deviceId);
        Task<List<Datastream>> GetDeviceProperties(string deviceId, int deviceTypeId);
    }
}
